package com.efast.cafe.portal.service.statemach;

import java.util.List;

import com.efast.cafe.portal.bean.statemach.PortalStateMachField;

public interface IPortalStateMachFieldService {

	/**
	 * 根据流程和状态获取entity的display配置
	 * 
	 * @param confId
	 * @param stateId
	 * @param entityName
	 * @return
	 */
	List<PortalStateMachField> getFieldForStateMach(Long confId, Long stateId, String entityName);

	/**
	 * 根据confId和企业ID删除entity配置
	 * 
	 * @param confId
	 * @param companyCode
	 */
	void delFieldByConfig(Long confId);

	/**
	 * 批量插入entity配置
	 * 
	 * @param fields
	 */
	void insertStateMachFields(List<PortalStateMachField> fields);

	/**
	 * 根据confId和企业ID获取entity配置
	 * 
	 * @param confId
	 * @param companyCode
	 * @return
	 */
	List<PortalStateMachField> getStateMachFieldByConfig(Long confId);
}
